<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>

<html>
<head manifest="sign.appcache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href='<spring:url value="/resources/images/favicon.ico"/>' />
<link href='<spring:url value="/resources/bootstrap/css/bootstrap.min.css"/>' rel="stylesheet" />
<link href='<spring:url value="/resources/css/full.css"/>' rel="stylesheet" />
<script type="text/javascript" src='<spring:url value="/resources/js/3rd/require.min.js" />'
	data-main='<spring:url value="/resources/js/sign/sign.js"/>'></script>
<title>签到-考勤系统</title>
</head>
<body>
	<div class="container">
		<jsp:include page="../topMenu.jsp" />
		<div class="panel panel-default">
			<div class="panel-heading">上下班打卡</div>
			<div class="panel-body">
				<spring:url var="signAction" value="/sign.do" />
				<form:form id="formSubmit" method="get" modelAttribute="record" cssClass="form-inline">
					<t:bootstrapInput name="uid" id="uid" label="工号" placeHolder="工号：00001" />
					<div class="form-group">
						<button id="sign" type="submit" class="btn btn-primary">打卡</button>
					</div>
				</form:form>
				<c:choose>
					<c:when test="${ERRORCODE=='SIGNSUCCEED'}">
						<span class="text-success"><spring:message code="${ERRORCODE}" arguments="${staffName}"></spring:message></span>
					</c:when>
					<c:when test="${ERRORCODE!=null&&ERRORCODE!=''}">
						<span class="text-danger"><spring:message code="${ERRORCODE}" arguments="${staffName}"></spring:message></span>
					</c:when>
				</c:choose>
			</div>
		</div>
	</div>
</body>
</html>